﻿using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WPF_UserControlToShowSuccess_Demo.ViewModels
{
        public class MainWindowViewModel : INotifyPropertyChanged
        {
            private bool _isSuccessed;
            public bool IsSuccessed
            {
                get { return _isSuccessed; }
                set
                {
                    if (_isSuccessed != value)
                    {
                        _isSuccessed = value;
                        OnPropertyChanged(nameof(IsSuccessed));
                    }
                }
            }

            public event PropertyChangedEventHandler PropertyChanged;

            protected void OnPropertyChanged(string propertyName)
            {
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }

